package routers

import (
	"beegoProject/controllers"
	"github.com/astaxie/beego"
)

func init() {
	beego.Router("/", &controllers.MainController{})
	// 创建路由 注册
	beego.Router("/register", &controllers.UserController{}, "post:Register")
	//修改手机号
	beego.Router("/updateMobile", &controllers.UserController{}, "post:UpdateMobile")
	//修改用户名
	beego.Router("/updateName", &controllers.UserController{}, "post:UpdateName")
	//通过userID删除某个用户
	beego.Router("/deleteUser", &controllers.UserController{}, "get:DeleteUserByUserId")
	//注册发送短信验证码
	beego.Router("/sendSmsCode", &controllers.UserController{}, "get:SendSmsCode")
	//视频数据分页查询
	beego.Router("/getVideoListByPage", &controllers.VideoController{}, "get:GetVideoListByPage")

}
